extends "../nengdai-1/nengdai-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("机动可闪避技能伤害", "战术伪装")

func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if not atkInfo.isMiss and atkInfo.atkType == sys.AtkType.SKILL:
		var dodRate = (1 - 100.0 / (100 + att.dod)) * 0.5
		if randf() < dodRate:
			atkInfo.isMiss = true
